﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BI.CF.Model;
using BI.CF.Factory;
using BI.CF.IDAL;

namespace BI.CF.BLL
{
    public class PropertyBLL
    {
        static CF_Factory fac = CF_Factory.DataBaseType();

        MyAccountIDAL MyAccount = fac.MemPropertyFAC();

        public MemPropertyModel MyaccountIndex(int Userid)
        {
            return MyAccount.MemProperty(Userid);
        }
        /// <summary>
        /// 用户执行充值
        /// </summary>
        /// <param name="RechargeMoney"></param>
        /// <param name="RechargeMode"></param>
        /// <param name="RechargeTime"></param>
        /// <param name="UserId"></param>
        /// <returns></returns>
        public int MemPropertyUpd(decimal RechargeMoney, string RechargeMode, DateTime RechargeTime, int UserId)
        {
            return MyAccount.MemPropertyUpd(RechargeMoney, RechargeMode, RechargeTime, UserId);
        }
        /// <summary>
        /// 用户修改头像
        /// </summary>
        /// <param name="UserId"></param>
        /// <param name="ImageUrl"></param>
        /// <returns></returns>
        public int HeadImageUpdate(int UserId, string ImageUrl)
        {
            return MyAccount.HeadImageUpdate(UserId,ImageUrl);
        }

    }
}
